Improve scrolling of windows whose font is different from frame's default.
authorEli Zaretskii <eliz@gnu.org>
Sun, 7 Jul 2013 15:49:03 +0000 (18:49 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 7 Jul 2013 15:49:03 +0000 (18:49 +0300)
commit47b734aebae163d4818742a9fa0bd6bd4d6cbdf4
treecbc37c36e0917f6e384d988531290b4ed79293b8
parent3e99f9a59172ee13d2f050754b416b0f371db0a2
Improve scrolling of windows whose font is different from frame's default.

 lisp/simple.el (default-font-height, window-screen-lines): New
 functions.
 (line-move, line-move-partial): Use them instead of
 frame-char-height and window-text-height.  This makes scrolling
 text smoother when the buffer's default face uses a font that is
 different from the frame's default font.
lisp/ChangeLog
lisp/simple.el